package com.SpringBoot.company.mapper;

import com.SpringBoot.company.pojo.Company;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bxk
 * @since 2025-09-15
 */
public interface CompanyMapper extends BaseMapper<Company> {
    void addCompany(Company company);
    Company getCompanyById(@Param("companyId") Integer companyId);
    Company getCompanyByName(@Param("companyName") String companyName);
    void updateCompany( Company company);
    void deleteCompanyById(Company company);
    List<Company> allCompany();
    List<Company> allCompanyPage(@Param("start") Integer start,
                                 @Param("pageSize") Integer pageSize);
    Integer count();


}
